<?php
//mysql_connect("localhost","wanzai_mylibrary","881006");
mysql_connect("127.0.0.1","root","");
mysql_select_db("wanzai_mylibrary");
mysql_query('SET NAMES UTF8');
$sql=mysql_query("insert into `book` (ISBN,B_Name,B_Category,B_Auther,B_Publishment,BuyTime,B_Image) VALUES('".$_REQUEST['ISBN']."','".$_REQUEST['B_Name']."','".$_REQUEST['B_Category']."','".$_REQUEST['B_Auther']."','".$_REQUEST['B_Publishment']."','".$_REQUEST['BuyTime']."','".$_REQUEST['B_Image']."')");

$data = array(
'result' => $sql,
);
$output[]=$data;
print(json_encode($output));
mysql_close();


?>

